package cn.kgc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/4/19
 * @Description:
 */
@RestController
@RequestMapping("score")
public class ScoreController {

    @Value("${server.port}")
    private Integer  port;

    @RequestMapping("m1")
    public String  method1(String color){

        System.out.println("Score ok");
        return "Score m1 ok port = " + port +" color = "+color;
    }


    @RequestMapping("m2")
    public String  method2(String color){

        System.out.println("Score ok");
        return "Score m1 ok port = " + port+" color = "+color;
    }

}
